<?php

defined('IN_SCHOOL') or die();

/*{TranslateTagBegin}*/
if(isset($this->tpl->_tpl_vars['_user_core']) && isset($this->tpl->_tpl_vars['jy_vcodelimit'])
	&& $this->tpl->_tpl_vars['_user_core'] < $this->tpl->_tpl_vars['jy_vcodelimit']) {
	session_start();

	$jyvcode = core::gpc('jyvcode','P');

	if(empty($jyvcode)) {
		$this->message('请填写验证码', "index.php?simpost-subreply-fid-$fid.htm");
	}
	if(!isset($_SESSION['JY_VCODE']) || $_SESSION['JY_VCODE'] != $jyvcode) {
		$this->message('验证码错误', "index.php?simpost-subreply-fid-$fid.htm");
	}
	$_SESSION['JY_VCODE'] = 0;
}
/*{TranslateTagEnd}*/

?>